package com.hhit.collaborative_learning.utils;

public class StringUtil {
	public static String formatArraytoString(int start,String[] content,String mark){
		StringBuilder  toContent=new StringBuilder();
		if(content.length==1){
			toContent.append("'"+content[0]+"'");
			return toContent.toString();
		}
		if(start>content.length-1){
			return null;
		}
		for(int i=start;i<content.length;i++){
			if(content[i]==null||"".equals(content[i])){
				continue;
			}
			toContent.append("'"+content[i]+"'"+mark);
		}
		toContent.deleteCharAt(toContent.length()-1);
		return toContent.toString();
	}
}
